
var vm = new Vue({
  el: '#app',
	data:{  
				options:[],
	    	form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: '',        
        },
        addevaluate:{
        	state:"",
        },   
        pickerOptions0: {        		
	          disabledDate(time) {
	            return time.getTime() < Date.now() - 8.64e7;
	          }
	      },
	      pickerOptions1: {
	          disabledDate(time) {
	            return time.getTime() < Date.now() - 8.64e7;
	          }
	      }
        
	},
	mounted:function ( ) { // 页面加载完成后会调用此函数
	    this.$nextTick(function () { // 加个函数可以保证 this和vm是一样 都可以掉用
	        vm.management();
	    })
	},
	methods:{
		management:function () {
	        this.$http.get('../data.json').then(res => { //作用域指向了外层 里面的this就是外面的this
	            vm.list = res.body.result.list;
	            vm.options = res.body.result.options;
	//          console.log(vm.options)
	        }); // 调用http方法
	    },
	    onSubmit() {
        alert('submit!');
     },
     
		}
	})